package top.waterduck.business;

import lombok.extern.log4j.Log4j2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;

@Log4j2
@SpringBootApplication
//@EnableEurekaClient
@ComponentScan("top.waterduck")
@MapperScan("top.waterduck.server.mapper")
public class BusinessApplication {

    public static void main(String[] args) {
        SpringApplication app=new SpringApplication(BusinessApplication.class);
        Environment env=app.run(args).getEnvironment();
        log.info("启动成功！！");
        log.info("Bussines地址: \thttp://127.0.0.1:{}", env.getProperty("server.port"));
    }
}
